import Layout from '@neu/biz-core/layout'

export default [
  {
    path: '/workorders',
    name: 'dcam_workorders',
    meta: {
      title: '工单管理',
      icon: 'plan',
      module: 'dcam',
      code: 'menu_dcam_workorder'
    },
    component: Layout,
    redirect: 'noRedirect',
    alwaysShow: true,
    children: [
      {
        path: 'myworkorder',
        name: 'dcam_myworkorder',
        meta: {
          title: '我的工单',
          icon: 'right-arrow',
          module: 'dcam',
          workOrderRequest: 'me',
          code: 'menu_dcam_myworkorder_myworkorder'
        },
        component: () => import('@neu/dcam-ui/views/workOrder')
      },
      {
        path: 'todoworkorder',
        name: 'dcam_todoworkorder',
        meta: {
          title: '待办工单',
          icon: 'right-arrow',
          module: 'dcam',
          workOrderRequest: 'todo',
          code: 'menu_dcam_myworkorder_todoworkorder'
        },
        component: () => import('@neu/dcam-ui/views/workOrder')
      },
      {
        path: 'doneworkorder',
        name: 'dcam_doneworkorder',
        meta: {
          title: '已办工单',
          icon: 'right-arrow',
          module: 'dcam',
          workOrderRequest: 'done',
          code: 'menu_dcam_myworkorder_doneworkorder'
        },
        component: () => import('@neu/dcam-ui/views/workOrder')
      }
    ]
  }
]
